var Data = {};
Data.init = function() {
	if (Data._search) {
		Data.getEngineList = function() {
			return Data._search.getList()
		};
		Data.getEngine = function() {
			return Data._search.getDefault()
		};
		Data.setEngine = function(A) {
			Data._search.setDefault(A.toString())
		};
		Data.doSearch = function(A) {
			Data._search.doSearch(A)
		};
		Data.bindEngineEvent = function(A) {
			Data._search.onstatechange = A
		}
	} else {
		Data._search = {}
	}
	if (Data._quickaccess) {
		Data.reset = function() {
			Data._quickaccess.reset()
		};
		Data.isShown = function() {
			return Data._quickaccess.show
		};
		Data.setShown = function(A) {
			Data._quickaccess.show = A
		};
		Data.getDialList = function() {
			return Data._quickaccess.getList()
		};
		Data.getDial = function(A) {
			A = parseInt(A);
			return Data._quickaccess.get(A)
		};
		Data.setDial = function(B, A) {
			B = parseInt(B);
			if (A == "") {
				A = null
			}
			Data._quickaccess.set(B, A)
		};
		Data.swapDial = function(B, A) {
			B = parseInt(B);
			A = parseInt(A);
			Data._quickaccess.swap(B, A)
		};
		Data.bindDialEvent = function(A) {
			Data._quickaccess.onstatechange = A
		}
	} else {
		Data._quickaccess = {}
	}
	if (Data._menu) {
		Data.popupMenu = function(A, C, B) {
			return Data._menu.popup(A, C, B)
		}
	} else {
		Data._menu = {}
	}
	if (Data._ueip) {
		Data.setUeip = function(A, B) {
			Data._ueip.set("quick_access", A + "", B + "")
		};
		Data.countUeip = function(A, B) {
			Data._ueip.count("quick_access", A + "", B + "")
		}
	} else {
		Data._ueip = {}
	}
	if (Data._locale) {
		Data.getLang = function(A) {
			return Data._locale[A]
		}
	} else {
		Data._locale = {}
	}
};
try {
	eval("runtime.import('maxthon.browser')");
	Data._search = runtime.SearchEngineService;
	Data._quickaccess = runtime.QuickAccessService;
	eval("runtime.import('maxthon.system')");
	Data._menu = runtime.NativeMenu;
	Data._ueip = runtime.UeipService;
	Data._lang = runtime.Language;
	Data._locale = Data._lang.load()
} catch (e) {
	Data._search = Data._quickaccess = Data._menu = Data._ueip = Data._locale = null
};